package com.yx.elastic.elasticcm;

import com.yx.elastic.elasticcm.client.MClientManager;
import io.swagger.annotations.*;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by chenzp on 18-7-18.
 */
//@RestController
//@Api("swaggerTestController相关api")
public class HelloController {


//    @Autowired
//    private MClientManager mClientManager;
//    /**
//     * 测试控制器
//     * @return
//     */
//
////    @ApiOperation(value = "根据id查询学生的信息",notes = "查询数据库中某个学生的信息")
////    @ApiImplicitParam(name ="id",value = "学生id",paramType = "path",required = true,dataType = "String")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "id",value = "用户id",dataType = "String",paramType = "query",example = "1112")
//    })
//    @ApiResponses({
//            @ApiResponse(code=400,message = "请求参数没有填好"),
//            @ApiResponse(code=404,message="请求路径没有找到")
//    })
//
////    @GetMapping(value = "testRest/{id}")
//    @RequestMapping("/test")
//    public String testGetResetful(@PathVariable String id){
//        System.out.println(id);
//        return "1232";
//    }



}
